﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminFunction.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="BitPortal.Admin.Tools.HtmlEditor.Default"
    ValidateRequest="false" ViewStateMode="Enabled" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TopBarHolder" runat="server">
    <ext:ButtonGroup ID="ButtonGroup1" runat="server" Layout="ToolbarLayout">
        <Items>
            <ext:Button runat="server" ID="btnCallAdd" Text="Lưu lại" Icon="Disk" Scale="Medium"
                CausesValidation="false">
                <Listeners>
                    <Click Handler="#{wSave}.show()" />
                </Listeners>
            </ext:Button>
            <ext:ToolbarSeparator />
        </Items>
    </ext:ButtonGroup>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager2" runat="server" />
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <FCK:FCKeditor ID="FCKeditor1" runat="server" BasePath="fckeditor/" Width="100%"
                Height="600">
            </FCK:FCKeditor>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnAdd" />
        </Triggers>
    </asp:UpdatePanel>
    <ext:Window ID="wSave" runat="server" Collapsible="true" Title="Lưu lại" Width="500"
        AutoScroll="true" AutoHeight="true" Hidden="true" Layout="FormLayout" Padding="20"
        ButtonAlign="Center">
        <Content>
            <ext:TextField runat="server" ID="txtFileName" FieldLabel="Tên file" AnchorHorizontal="100%" />
        </Content>
        <Buttons>
            <ext:Button runat="server" ID="btnAdd" Text="Lưu" Icon="Disk" Scale="Medium" CausesValidation="false"
                OnClick="btnAdd_Click" AutoPostBack="true">
            </ext:Button>
        </Buttons>
    </ext:Window>
</asp:Content>
